using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ModelTools._ModelOnly
{
    /// <summary>
    /// <para>Select Data</para>
    /// <para>The Select Data tool selects data in a parent data element such as a folder, geodatabase, feature dataset, or coverage.</para>
    /// <para>选择数据工具用于选择父数据元素（例如文件夹、地理数据库、要素数据集或覆盖范围）中的数据。</para>
    /// </summary>    
    [DisplayName("Select Data")]
    public class SelectData : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SelectData()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataelement">
        /// <para>Input Data Element</para>
        /// <para>The input data element can be a folder, geodatabase, or feature dataset.</para>
        /// <para>输入数据元素可以是文件夹、地理数据库或要素数据集。</para>
        /// </param>
        public SelectData(object _in_dataelement)
        {
            this._in_dataelement = _in_dataelement;
        }
        public override string ToolboxName => "Model Tools";

        public override string ToolName => "Select Data";

        public override string CallName => "mb.SelectData";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_dataelement, _out_dataelement, _out_dataelement_derived];

        /// <summary>
        /// <para>Input Data Element</para>
        /// <para>The input data element can be a folder, geodatabase, or feature dataset.</para>
        /// <para>输入数据元素可以是文件夹、地理数据库或要素数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Data Element")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataelement { get; set; }


        /// <summary>
        /// <para>Child Data Element</para>
        /// <para>The child data element is contained by the input data element. Once the input data element is specified, the child data element control contains a drop-down list of the data elements contained in the input data element. For example, if the input is a feature dataset, all the feature classes within the feature dataset are included in the drop-down list. A single element is selected from this list.</para>
        /// <para>子数据元素由输入数据元素包含。指定输入数据元素后，子数据元素控件将包含输入数据元素中包含的数据元素的下拉列表。例如，如果输入是要素数据集，则要素数据集中的所有要素类都将包含在下拉列表中。从此列表中选择单个元素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Child Data Element")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_dataelement { get; set; } = null;


        /// <summary>
        /// <para>Child  Data Element</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Child  Data Element")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_dataelement_derived { get; set; }


        public SelectData SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}